home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 62 / MacAddict_062_2001_10.iso / mac / Software / X / X-Assist.dmg / X-Assist Plugin SDK / SetVolume Example / XAPlugin.h < prev    next >
Text File  |  2001-04-29  |  1KB  |  57 lines

  1. //
  2. //  XAPlugin.h
  3. //  XAPlugin
  4. //
  5. //  Created by rosst on Fri Apr 13 2001.
  6. //  Copyright (c) 2001 __CompanyName__. All rights reserved.
  7. //
  8.  
  9. #import <Cocoa/Cocoa.h>
  10.  
  11. // ============================
  12. // == Change "SetVolume" below to your plugin name.
  13. // == Once you build the plugin, place it into the "X-Assist Plugins" folder
  14. // == and everything should just load.
  15. // == NOTE: you MUST use a unique name, otherwise the conflicting plugins
  16. // ==       will NOT load.
  17. // ============================
  18.  
  19. @interface SetVolume : NSObject {
  20.     NSMenuItem*    mPluginMenuItem;
  21.     
  22.     // Your variables go here...
  23.     long    mCurVolume;
  24. }
  25.  
  26. - (id)init;
  27. - (void)shutdownPlugin;
  28.  
  29.  
  30. // =============================
  31. // == Required Plugin Routine ==
  32. // =============================
  33.  
  34. // == API VERSION 1 ROUTINES ==
  35.  
  36. // This routine is called to obtain a menu item to be inserted into the menu.
  37. - (NSMenuItem*)getMenuItem;
  38.  
  39. // items below are for future use.
  40. - (int)getPluginAPIVersion;
  41. - (int)getMenuItemInsertLocation;
  42.  
  43. - (NSString*)getPluginDescription;    // return info & copyright etc.
  44. - (void)doConfigurePlugin;        // put up config window...
  45.  
  46. // == API VERSION 2 ROUTINES ==
  47.  
  48.  
  49. // =============================
  50.  
  51. // User defined routines.
  52. - (IBAction)DoSetSysBeepVolumeTo:(id)sender;
  53. - (IBAction)DoSetSystemVolumeTo:(id)sender;
  54.  
  55.  
  56.  
  57. @end